import akshare as ak
import pandas as pd
import sqlite3

# 获取十大流通股东数据
df_top10 = ak.stock_gdfx_top_10_em(symbol="sz002594")

with sqlite3.connect("example.db") as conn:
    df_top10.to_sql("stock_gdffx_top_10_em",conn,if_exists="replace",index=False)
    ...
